package comone.javathree;

public class Pet {

    private  int id;
    private String name;//名称

    public Pet() {
        System.out.println("这是父类的无参构造...");
    }

    public Pet(String name) {
        this.name = name;
    }



    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
